﻿using MVCOA.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MVCOA
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            IBLL.IHotNavBLL HotNav = OperateContext.Current.BLLSession.IHotNavBLL;
            ViewBag.hotNavList=HotNav.GetListBy(g => true);
            IBLL.ICate_SecondBLL BottomNavFirst = OperateContext.Current.BLLSession.ICate_SecondBLL;
            IBLL.ICate_ThirdBLL BottomNav = OperateContext.Current.BLLSession.ICate_ThirdBLL;
            IBLL.IContactUBLL Contact = OperateContext.Current.BLLSession.IContactUBLL;
            ViewBag.BottomNavFirst = BottomNavFirst.GetListBy(g=>g.isNav!=0);
            ViewBag.BottomNav = BottomNav.GetListBy(g=>g.isNav!=0);
            var list = BottomNav.GetListBy(g => g.isNav != 0);
            return View();
        }

    }
}
